#ifndef PUBLICFUNCTION_H
#define PUBLICFUNCTION_H

#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/algorithm/string/replace.hpp>
//namespace pub {
std::string sha256(const std::string& str);
std::string generateUUID();

void splitString(const std::string& s, std::vector<std::string>& v, const std::string& c);
void splitString(const char* src, std::vector<std::string>& v, const char* separator);

int GetFileNames(const std::string& path, std::vector<std::string>& filenames);
int GetSubFolders(const std::string& path, std::vector<std::string>& foldernames);
int readFile(const std::string& path, std::string& content);
int writeFile(const std::string& path, const std::string& content);
//}
#endif // PUBLICFUNCTION_H
